package com.googlecode.slm.log;

/**
 * 系统输出日志
 * @author liguangjian
 *
 */
public class SystemLog implements Log {

	private Class<?> className = null;
	public SystemLog(Class<?> className) {
		this.className = className;
	}

	@Override
	public boolean isDebugEnabled() {
		return true;
	}

	@Override
	public void error(String s, Throwable e) {
		System.out.println(className.getName() + " : " + s + " : " + e.getMessage());
	}

	@Override
	public void error(String s) {
		System.out.println(className.getName() + " : " + s);
	}

	@Override
	public void error(Object o) {
		System.out.println(className.getName() + " : " + o);

	}

	@Override
	public void warn(String s) {
		System.out.println(className.getName() + " : " + s);
	}

	@Override
	public void warn(Object o) {
		System.out.println(className.getName() + " : " + o);
	}

	@Override
	public void info(String s) {
		System.out.println(className.getName() + " : " + s);
	}

	@Override
	public void info(Object o) {
		System.out.println(className.getName() + " : " + o);
	}

	@Override
	public void debug(String s) {
		System.out.println(className.getName() + " : " + s);
	}

	@Override
	public void debug(Object o) {
		System.out.println(o);
	}

}
